/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package motiveai.tests;

import motiveai.annotation.DurationOfBehaviour;
import motiveai.components.Agent;
import motiveai.components.BehaviourEntity;
import motiveai.factors.Environment;

/**
 *
 * @author oxplay
 */
public class Test3Idle extends BehaviourEntity<Agent> {

    public Test3Idle() {
    }

    public boolean canBeUsed(Agent agent, Environment environment) {
        return true;
    }

    @Override
    @DurationOfBehaviour(duration = 0.3f)
    public float behave(Agent agent, Environment environment) {
        System.out.println("idling");
        environment.setBooleanFactor("noPush", true);
        return 0;
    }
}
